<template>
  <div id="logo">
    <el-row>
      <el-col :span="13">
        <div class="bg-purple">
          <router-link to="/st_course">
            <i @click="back" class="iconfont icon-fanhui"></i>
            <h1 class="font-size">中小学生作业系统</h1>
          </router-link>
        </div>
      </el-col>
      <el-col :span="8">
        <div class="bg-purple-light">
          <router-link to="/">
            <span> 退出</span>
            <i @click="back" class="iconfont icon-tuichu1"></i>
          </router-link>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "logo",
  data() {
    return {};
  },
  methods: {
    back() {
      this.$router.go(-1); //返回上一层
    },
  },
  
};
</script>

<style scoped>
a {
  text-decoration: none;
  outline: none;
  color: #000;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

#logo {
  padding: 0 30px;
  width: 100%;
  background-color: rgb(102, 171, 104);
}

h1 {
  display: inline-block;
  font-size: 40px;
}

i {
  font-size: 40px;
  margin: 10px;
}

.bg-purple {
  /* font-size: 30px; */
  margin: 5px;
  float: left;
}

.bg-purple-light {
  margin: 5px;
  float: right;

  height: 40px;
  line-height: 40px;
}
span {
  font-size: 30px;
}
</style>